package inject;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Hello{
	
	

	
	public static void main(String[] args) throws Exception {	
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();

		ctx.register(Config.class);
		// ctx.register(scans.c.Config.class);

		ctx.refresh();
		
		Zoo zoo = (Zoo)ctx.getBean("zoo");
		System.out.println(zoo.info());
		
		
		ctx.close();
	}
	
	
}
